package com.example.facadePattern.Shape;

import com.example.facadePattern.Shape.imtes.CircleShape;
import com.example.facadePattern.Shape.imtes.RectangleShape;
import com.example.facadePattern.Shape.imtes.SquareShape;

/**
 * 统一的模型外观
 * sun 2017-12-18
 */
public class ShapeMaker {
    private CircleShape circleShape;
    private SquareShape squareShape;
    private RectangleShape rectangleShape;

    public ShapeMaker() {
       circleShape = new CircleShape();
       squareShape = new SquareShape();
       rectangleShape = new RectangleShape();
    }

    public void drawCircle(){
        circleShape.draw();
    }

    public void drawSquare(){
        squareShape.draw();
    }

    public void drawRectangle(){
        rectangleShape.draw();
    }
}
